/***********************************************************************************
 * 文 件 名   : ControlUart.h
 * 负 责 人   : jiangfeng.zhang
 * 创建日期   : 2021年6月30日
 * 文件描述   : Uart控制器驱动头文件
 * 版权说明   : Copyright (c) 2008-2021   Personal. All rights reserved.
 * 其    他   : 
 * 修改日志   : 
***********************************************************************************/


#ifndef _CONTRONL_USART_H
#define _CONTRONL_USART_H

#include "RingBuffer.h"

enum UART_CHANNEL
{
   UART0_CHANNEL = 0, 
   UART1_CHANNEL = 1, 
   UART2_CHANNEL = 2, 
   UART3_CHANNEL = 3, 
   UART4_CHANNEL = 4, 
   UART5_CHANNEL = 5, 
};

void ControlUartInit(unsigned char ucChannel, unsigned int bound);
void ControlUartSendData(unsigned char ucChannel, unsigned char ucData);
void ControlUartIrqEnable(unsigned char ucChannel, unsigned char ucData);




/* [add by jiangfeng.zhang, 2021-06-30] :全局Ringbuff声明,中断中将会进行接口调用*/
#define   		RECV_FIX_DATA_LEN	    10
#define         RING_BUFFER_SIZE	500
extern  unsigned char  g_aucUartRepBuff[RING_BUFFER_SIZE] ;
extern  ring_buffer    g_stRingBuff ;

extern  unsigned int  g_uiLostPackNum;
#endif


